<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      NSPR-4.25
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;9.&nbsp;General Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="npth.html" title="npth-1.6">Prev</a>
          <p>
            npth-1.6
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="pcre.html" title="PCRE-8.44">Next</a>
          <p>
            PCRE-8.44
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genlib.html" title=
          "Chapter&nbsp;9.&nbsp;General Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="nspr" name="nspr"></a>NSPR-4.25
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to NSPR
        </h2>
        <p>
          <span class="application">Netscape Portable Runtime</span> (NSPR)
          provides a platform-neutral API for system level and libc like
          functions.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://archive.mozilla.org/pub/nspr/releases/v4.25/src/nspr-4.25.tar.gz">
                https://archive.mozilla.org/pub/nspr/releases/v4.25/src/nspr-4.25.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 4ca4d75a424f30fcdc766296bb103d17
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.0 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 10 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/nspr">http://wiki.linuxfromscratch.org/blfs/wiki/nspr</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of NSPR
        </h2>
        <p>
          Install <span class="application">NSPR</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class=
"command">cd nspr                                                     &amp;&amp;
sed -ri 's#^(RELEASE_BINS =).*#\1#' pr/src/misc/Makefile.in &amp;&amp;
sed -i 's#$(LIBRARY) ##'            config/rules.mk         &amp;&amp;

./configure --prefix=/usr \
            --with-mozilla \
            --with-pthreads \
            $([ $(uname -m) = x86_64 ] &amp;&amp; echo --enable-64bit) &amp;&amp;
make</kbd>
</pre>
        <p>
          The testsuite is designed for testing changes to nss or nspr and is
          not particularly useful for checking a released version (e.g. it
          needs to be run on a non-optimized build with both nss and nspr
          directories existing alongside each other). For further details,
          see the User Notes for nss at <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/nss">http://wiki.linuxfromscratch.org/blfs/wiki/nss</a>
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>sed -ri 's#^(RELEASE_BINS =).*#\1#'
          pr/src/misc/Makefile.in</strong></span>: This sed disables
          installing two unneeded scripts.
        </p>
        <p>
          <span class="command"><strong>sed -i 's#$(LIBRARY) ##'
          config/rules.mk</strong></span>: This sed disables installing the
          static libraries.
        </p>
        <p>
          <em class="parameter"><code>--with-mozilla</code></em>: This
          parameter adds Mozilla support to the libraries (required if you
          want to build any other Mozilla products and link them to these
          libraries).
        </p>
        <p>
          <em class="parameter"><code>--with-pthreads</code></em>: This
          parameter forces use of the system pthread library.
        </p>
        <p>
          <em class="parameter"><code>$([ $(uname -m) = x86_64 ] &amp;&amp;
          echo --enable-64bit)</code></em>: The --enable-64bit parameter is
          <span class="emphasis"><em>required</em></span> on an x86_64 system
          to prevent <span class="command"><strong>configure</strong></span>
          failing with a claim that this is a system without pthread support.
          The [ $(uname -m) = x86_64 ] test ensures it has no effect on a 32
          bit system.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">nspr-config</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libnspr4.so, libplc4.so and
              libplds4.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/nspr</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="nspr-config" name="nspr-config"></a><span class=
                    "term"><span class=
                    "command"><strong>nspr-config</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    provides compiler and linker options to other packages
                    that use <span class="application">NSPR</span>.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libnspr4" name="libnspr4"></a><span class=
                    "term"><code class="filename">libnspr4.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains functions that provide platform independence for
                    non-GUI operating system facilities such as threads,
                    thread synchronization, normal file and network I/O,
                    interval timing and calendar time, basic memory
                    management and shared library linking.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libplc4" name="libplc4"></a><span class=
                    "term"><code class="filename">libplc4.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains functions that implement many of the features
                    offered by libnspr4
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libplds4" name="libplds4"></a><span class=
                    "term"><code class="filename">libplds4.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains functions that provide data structures.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-15 10:54:30 -0600
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="npth.html" title="npth-1.6">Prev</a>
          <p>
            npth-1.6
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="pcre.html" title="PCRE-8.44">Next</a>
          <p>
            PCRE-8.44
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genlib.html" title=
          "Chapter&nbsp;9.&nbsp;General Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
